Skip to content

Commit

Permalink
python310Packages.dj-static: init at 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed May 14, 2023
1 parent 9a5b848 commit dde0822
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/dj-static/default.nix
@@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, static3
}:

buildPythonPackage rec {
pname = "dj-static";
version = "0.0.6";
format = "setuptools";

src = fetchFromGitHub {
owner = "heroku-python";
repo = "dj-static";
rev = "v${version}";
hash = "sha256-B6TydlezbDkmfFgJjdFniZIYo/JjzPvFj43co+HYCdc=";
};

buildInputs = [
django
];

propagatedBuildInputs = [
static3
];

pythonImportsCheck = [
"dj_static"
];

doCheck = false;

meta = with lib; {
description = "Serve production static files with Django";
homepage = "https://github.com/heroku-python/dj-static";
license = licenses.bsd2;
maintainers = with maintainers; [ hexa ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -2843,6 +2843,8 @@ self: super: with self; {

dj-search-url = callPackage ../development/python-modules/dj-search-url { };

dj-static = callPackage ../development/python-modules/dj-static { };

dkimpy = callPackage ../development/python-modules/dkimpy { };

dlib = callPackage ../development/python-modules/dlib {
Expand Down

0 comments on commit dde0822

Please sign in to comment.